/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DragBarPanelPackage;

import java.awt.Dimension;
import java.awt.Point;
import javax.swing.Action;
import javax.swing.JButton;

/**
 *
 * @author Evan
 */
public class DragBarButton extends JButton
{
  private boolean isExpanded = false;
  private boolean isPressed = false;
  private Point oldLocation = new Point(0, 0);
  private Dimension oldSize = new Dimension(50, 50);
  // The value to be displayed on the button
  private double value = 0;

  public DragBarButton()
  {
    super();
  }

  public DragBarButton(Action a)
  {
    super(a);
  }

  public DragBarButton(String s)
  {
    super(s);
  }

  public Point getOldLocation()
  {
    return oldLocation;
  }

  public Dimension getOldSize()
  {
    return oldSize;
  }

  public boolean isExpanded()
  {
    return isExpanded;
  }

  public boolean isPressed()
  {
    return isPressed;
  }

  public double getValue()
  {
    return value;
  }
  
  public void setOldLocation(Point point)
  {
    oldLocation = point;
  }

  public void setOldSize(Dimension size)
  {
    oldSize = size;
  }

  public void setIsExpanded(boolean bool)
  {
    isExpanded = bool;
  }

  public void setIsPressed(boolean bool)
  {
    isPressed = bool;
  }

  public void setValue(double newValue)
  {
    value = newValue;
  }
}
